<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	<div class="easyui-layout" fit="true">
		<div data-options="region:'north'" border="false"
			style="height:60px;margin:10px;">
			<form id="bedroomSearchForm">
				<input type="hidden" value="${bedroom.id}" id="bedroomId" name="bedroomId">
				<input type="hidden" value="${bedroom.bed}" id="bed" name="bed">
				<input type="hidden" value="${bedroom.count}" id="studentcount" >
				<input type="hidden" value="${bedroom.bedroomType}" id="bedroomType" name="bedroomType">
			
				<div style="width:25px;height:20px;float:left;padding-bottom:5px;margin:5px;">
					${bedroom.bedroomType == '男寝'?'<img src="public/images/MaleDorm.png" title="男生寝室">':'<img src="public/images/FemaleLay.png" title="女生寝室">'}
				</div>				
				
				<div style="width:120px;height:25px;float:left;margin:10px;">
					<span style="font-size: 15px;font-weight:bold;">${bedroom.name}详情</span>
				</div>
				

				<div style="width:150px;height:25px;float:left;margin:10px">
					<span style="font-size: 14px;">寝室长：
					<c:if test="${not empty bedroom.studentId.name}">
						${bedroom.studentId.name}
					</c:if>
					<c:if test="${empty bedroom.studentId.name}">
						暂无
					</c:if>
					</span>
				</div>
				
				
				<div style="width:150px;height:25px;float:left;margin:10px">
					<span style="font-size: 14px;">寝室状态：${bedroom.state}</span>
				</div>
				<a id="edreturn" class="easyui-linkbutton" iconCls="icon-back"  style="margin:8px 20px 8px 0px ;float:right">返回</a>
			</form>
			
			
			
		</div>

		<div data-options="region:'center'" border="false"  title="&nbsp;&nbsp;&nbsp;寝室类型：${bedroom.bedroomType }&nbsp;&nbsp;&nbsp;当前人数：(${bedroom.count})&nbsp;&nbsp;&nbsp;上限人数：(${bedroom.bed})">

			<table id="bedroomDetailsGrid">

			</table>
			
		</div>

	
	</div>
<script src="public/js/bedroom_details.js"></script>

